package com.web.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.web.entity.User;
import com.web.entity.UserInfo;
import com.web.mapper.UserInfoMapper;
import com.web.mapper.UserMapper;
import com.web.service.UserInfoService;
import com.web.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("userService")
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Autowired
    UserMapper userMapper;

    @Autowired
    UserInfoMapper userInfoMapper;

    @Override
    public User Sel(int id) {
        return userMapper.Sel(id);
    }

    @Override
    public User Sel2(int id) {
        return userMapper.Sel2(id);
    }

    @Override
    public UserInfo getInfoById(Integer id){
        return userInfoMapper.getInfoById(id);
    }

}
